export default {
  data () {
    return {
      list_c: [
        { label: '编号', prop: 'id', },
        { label: '流水号', prop: 'serialNo' },
        { label: '计划号', prop: 'planNo' },
        { label: '产品', prop: 'product' },
        { label: '型号', prop: 'model' },
        { label: '规格', prop: 'specification' },
        { label: '单位', prop: 'unit' },
        { label: 'BOM', prop: 'bom' },
        { label: '生产线', prop: 'productLine' },
        { label: '工艺', prop: 'process' },
        { label: '项目', prop: 'project' },
        { label: '待产数量', prop: 'unfinishedQuantity' },
        { label: '已产数量', prop: 'finishedQuantity' },
        { label: '生产日期', prop: 'productDate' },
        { label: '交货日期', prop: 'deliveryDate' },
        { label: '发布状态', prop: 'publishStatus' },
        { label: '领料状态', prop: 'issueStatus' },
      ],
      list_q: {
        serialNo: null,
        planNo: null,
        materialName: null,
        bom: null,
        productLine: null,
        process: null,
        project: null,
        productStartDate: null,
        productEndDate: null,
        productAttr: [],
        deliveryStartDate: null,
        deliveryEndDate: null,
        deliveryAttr: [],
        publishStatus: null,
      },
      list_q_c: [
        { form_item_prop: { label: '流水号', prop: 'serialNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '计划号', prop: 'planNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '物料名称', prop: 'materialName' }, component_name: 'el-input' },
        { form_item_prop: { label: '生产线', prop: 'productLine' }, component_name: 'el-input' },
        { form_item_prop: { label: '工艺', prop: 'process' }, component_name: 'el-input' },
        { form_item_prop: { label: '项目', prop: 'project' }, component_name: 'el-input' },
        { form_item_prop: { label: '生产日期', prop: 'productAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': '	yyyy-MM-dd hh:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
        { form_item_prop: { label: '交货日期', prop: 'deliveryAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': '	yyyy-MM-dd hh:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
        { form_item_prop: { label: '状态', prop: 'publishStatus' }, component_name: 'el-input' },
      ],
      list_e: {
        bom: null,
        deliveryDate: null,
        finishedQuantity: null,
        id: null,
        issueStatus: null,
        model: null,
        planNo: null,
        process: null,
        product: null,
        productDate: null,
        productLine: null,
        project: null,
        publishStatus: null,
        remark: null,
        serialNo: null,
        specification: null,
        unfinishedQuantity: null,
        unit: null,
      },
      list_e_c: [
        { form_item_prop: { label: '计划号', prop: 'planNo', required: true }, component_name: 'el-input', component_prop: { is_disabled: false } },
        { form_item_prop: { label: '项目', prop: 'project', }, component_name: 'el-input', component_prop: { is_disabled: true } },
        { form_item_prop: { label: '产品', prop: 'product', }, component_name: 'el-input', component_prop: { is_disabled: true } },
        { form_item_prop: { label: '型号', prop: 'model', }, component_name: 'el-input', component_prop: { is_disabled: true } },
        { form_item_prop: { label: '单位', prop: 'unit', }, component_name: 'el-input', component_prop: { is_disabled: true } },
        { form_item_prop: { label: 'Bom', prop: 'bom', required: true }, component_name: 'el-input', component_prop: { is_disabled: false } },
        { form_item_prop: { label: '生产线', prop: 'productLine', required: true }, component_name: 'el-input', component_prop: { is_disabled: false } },
        { form_item_prop: { label: '工艺', prop: 'process', required: true }, component_name: 'el-input', component_prop: { is_disabled: false } },
        { form_item_prop: { label: '待产数量', prop: 'unfinishedQuantity', required: true }, component_name: 'el-input', component_prop: { is_disabled: true } },
        { form_item_prop: { label: '已产数量', prop: 'finishedQuantity', }, component_name: 'el-input', component_prop: { is_disabled: true } },
        { form_item_prop: { label: '生产日期', prop: 'productDate' }, component_name: 'el-date-picker', component_prop: { is_disabled: false, 'value-format': 'yyyy-MM-dd hh:mm:ss', type: 'datetime' } },
        { form_item_prop: { label: '交货日期', prop: 'deliveryDate' }, component_name: 'el-date-picker', component_prop: { is_disabled: true, 'value-format': ' yyyy-MM-dd hh:mm:ss', type: 'datetime' } },
        { form_item_prop: { label: '状态', prop: 'publishStatus', }, component_name: 'el-input', component_prop: { is_disabled: true } },
        { form_item_prop: { label: '备注', prop: 'remark', }, component_name: 'el-input', component_prop: { is_disabled: false } },
      ],
      list_detailList_c: [
        { label: '型号', prop: 'material.model' },
        { label: '规格', prop: 'material.specification' },
        { label: '单位', prop: 'material.unit' },
        { label: '需求数量', prop: 'demandQuantity' },
        { label: '已用数量', prop: 'usedQuantity' },
        { label: '剩余数', prop: 'remainQuantity' },
        { label: '备注', prop: 'remark', cn: 'el-input' },
      ],
      list_material_c: [
        { label: '型号', prop: 'material.model' },
        { label: '规格', prop: 'material.specification' },
        { label: '单位', prop: 'material.unit' },
        { label: '需求数量', prop: 'demandQuantity' },
        { label: '已用数量', prop: 'usedQuantity' },
        { label: '剩余数', prop: 'remainQuantity' },
        { label: '备注', prop: 'remark' },
      ],
    }
  },
  methods: {
  },
}